<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
%><%@ taglib tagdir="/WEB-INF/tags" prefix="cohesion"
%><%@ page contentType="text/html;charset=ISO-8859-1"
%><html:html>
    <head>
        <title><bean:message key="V_pas.title"/></title>
        <html:base/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"></link>
        <script type="text/javascript" src="../_tooltips/js/prototype.js"></script>
        <script type="text/javascript" src="../_tooltips/js/HelpBalloon.js"></script>
        <script type="text/javascript" src="../scripts/datetimepicker.js"></script>
        <style type="text/css">
        div#box756119 {width: 400px; margin: 40px auto; }
        form#756119 {float: left; margin: 0; padding: 0; display: inline; width: 400px; }
        form#756119 p {float: left; margin: 0; padding: 0; display: inline; }
        form#756119 label {float: left; margin: 0; padding: 0; display: inline; overflow: hidden; }
        form#756119 input {float: left; margin: 0; padding: 0; display: inline; }
          form#756119 p#756121_C {clear: both; width: 400px; }
          form#756119 p#756121_C label {clear: both; width: 400px; }
          form#756119 p#756121_C input {clear: both; width: 396px; }
          form#756119 p#756120_C {clear: both; width: 400px; }
          form#756119 p#756120_C label {clear: both; width: 400px; }
          form#756119 p#756120_C input {clear: both; width: 396px; }
          form#756119 p#756123_C {clear: both; width: 400px; }
          form#756119 p#756123_C label {clear: both; width: 400px; }
          form#756119 p#756123_C input {clear: both; width: 396px; }
          form#756119 p#756126_C {clear: both; width: 400px; }
          form#756119 p#756126_C label {clear: both; width: 400px; }
          form#756119 p#756126_C input {clear: both; width: 396px; }
          form#756119 p#756124_C {clear: both; width: 400px; }
          form#756119 p#756124_C label {clear: both; width: 400px; }
          form#756119 p#756124_C input {clear: both; width: 396px; }
          form#756119 p#756125_C {clear: both; width: 400px; }
          form#756119 p#756125_C label {clear: both; width: 400px; }
          form#756119 p#756125_C input {clear: both; width: 396px; }
          form#756119 p#756127_C {clear: both; width: 400px; }
          form#756119 p#756127_C label {clear: both; width: 400px; }
          form#756119 p#756127_C input {clear: both; width: 396px; }
          form#756119 p#756122_C {clear: both; width: 400px; }
          form#756119 p#756122_C label {clear: both; width: 400px; }
          form#756119 p#756122_C input {clear: both; width: 396px; }

        </style>

    </head>
    <body>
        <div id="header">
            <div id="title"><bean:message key="V_pas.title"/></div>
            <div id="menu">
                <ul id="nav">
                    <li><script>var _msg1 = "<bean:message key="V_pas.cond1"/>";</script><cohesion:actor actors="1"><html:link action="/AElim_pas.do" paramId="idPas" paramName="idPas" onclick="if(!confirm(_msg1)) return false;"><bean:message key="V_pas.label1"/><%-- Eliminar --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APreCrear_pas.do"><bean:message key="V_pas.label2"/><%-- Agregar --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APreBuscar_pas.do"><bean:message key="V_pas.label3"/><%-- Buscar --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APreListar_pas.do"><bean:message key="V_pas.label4"/><%-- Listar --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APre_profesor.do" paramId="idProfesor" paramName="idProfesor"><bean:message key="V_pas.label5"/><%-- Profesor --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APreCrear_observacion_Pas_pas.do" paramId="idPas_super" paramName="idPas_super"><bean:message key="V_pas.label7"/><%-- + Observaciones --%></html:link></cohesion:actor></li>
                    <li><cohesion:actor actors="1"><html:link action="/APreCrear_monto_pas.do" paramId="idPas_super" paramName="idPas_super"><bean:message key="V_pas.label9"/><%-- + Montos --%></html:link></cohesion:actor></li>

                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div class="content">
                            ${empty msg ? "" : msg}
                <div class="box756119"><html:form styleId="F756119"
                  action="/AAct_pas.do" method="post">
                  <html:hidden property="idPas"/>
                  <p id="756120_C"><label for="756120"><bean:message key="FPas.label1"/><%-- Fecha_inicio : --%></label><html:text styleId="756120" property="fecha_inicio" size="30" readonly="true" onclick="NewCal('756120','ddmmyyyy');"/></p>
                  <p id="756123_C"><label for="756123"><bean:message key="FPas.label2"/><%-- Fecha_finalizacion : --%></label><html:text styleId="756123" property="fecha_finalizacion" size="30" readonly="true" onclick="NewCal('756123','ddmmyyyy');"/></p>
                  <p id="756126_C"><label for="756126"><bean:message key="FPas.label3"/><%-- Prof_desc_cadivi : --%></label><html:checkbox styleId="756126" property="prof_desc_cadivi"/></p>
                  <p id="756124_C"><label for="756124"><bean:message key="FPas.label4"/><%-- Profesor : --%></label><html:select styleId="756124" property="profesor"><html:optionsCollection property="listProfesor"/></html:select></p>
                  <p id="756127_C"><label for="756127"><bean:message key="FPas.label6"/><%-- Universidad : --%></label><html:text styleId="756127" property="universidad" size="30"/></p>
                  <p id="756122_C"><label for="756122"><bean:message key="FPas.label7"/><%-- Pais : --%></label><html:text styleId="756122" property="pais" size="30"/></p>

                  <html:submit styleClass="button"><bean:message key="V_pas.label0"/><%-- Actualizar --%></html:submit>
                </html:form></div>
                <% request.setAttribute("_vacio", new Object[0]);%>
                <h2><bean:message key="V_pas.label6"/><%-- Observaciones --%></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th><bean:message key="V_pas.label6.1"/><%-- Fecha --%></th>
                            <th><bean:message key="V_pas.label6.2"/><%-- Texto --%></th>

                        </tr>
                    </thead>
                    <tbody>
                        <logic:iterate id="observacion_Pas" collection="${empty L_Observacion_Pas ? _vacio : L_Observacion_Pas}">
                            <tr>
                                <td><html:link action="/APre_observacion_Pas.do" paramId="idObservacion_Pas" paramName="observacion_Pas" paramProperty="idObservacion_Pas">${empty observacion_Pas.fecha ? "Editar" : observacion_Pas.fecha}</html:link></td>
                                <td>${observacion_Pas.texto}</td>

                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>
                <% request.setAttribute("_vacio", new Object[0]);%>
                <h2><bean:message key="V_pas.label8"/><%-- Montos --%></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th><bean:message key="V_pas.label8.1"/><%-- Monto --%></th>
                            <th><bean:message key="V_pas.label8.2"/><%-- Fecha_tramite --%></th>
                            <th><bean:message key="V_pas.label8.4"/><%-- Fecha_prox_tramite --%></th>

                        </tr>
                    </thead>
                    <tbody>
                        <logic:iterate id="monto" collection="${empty L_Monto ? _vacio : L_Monto}">
                            <tr>
                                <td><html:link action="/APre_monto.do" paramId="idMonto" paramName="monto" paramProperty="idMonto">${empty monto.monto ? "Editar" : monto.monto}</html:link></td>
                                <td>${monto.fecha_tramite}</td>
                                <td>${monto.fecha_prox_tramite}</td>

                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>

                        </div>
                    </div>
                    <div id="right"><ul id="nav"><li><script type="text/javascript">var hb = new HelpBalloon({ dataURL: '/ddpdb/tooltip.do?V=V_pas'});</script></li></ul><jsp:include page="/ppal/menu.jsp" flush="true"/></div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <div id="footer"> <bean:message key="bottom.label"/> </div>
        
    </body>
</html:html>